package com.treasure.web.command.request;

import com.treasure.common.exception.ParameterException;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author sunhongmin
 * @date 2023/9/2 14:29
 * @description
 */
@Data
public class KnowledgeDocumentRequest implements Serializable {


    /**
     * 知识库ID
     */
    private Integer knowledgeId;

    public void valiadate() {
        if (Objects.isNull(knowledgeId)) {
            throw new ParameterException("知识库ID不能为空");
        }
    }
}
